package com.ymm.lulutong.constant;

public enum ProfileCodeEnum {
    //不存在用户
    SHIPPER_NOT_EXIST(103, "不存在的用户"),
    //账号已经被注销
    ACCOUNT_CANCELLED(104, "账号已经被注销"),
    //手机号格式错误
    PHONE_NUMBER_FORMAT_ERROR(201, "手机号格式错误"),
    //手机号未注册
    PHONE_NUMBER_UNREGISTERD(202, "手机号未注册"),
    //手机号已经被注册
    PHONE_NUMBER_REGISTERED(203, "手机号已经被注册"),
    //与原先手机号相同
    PHONE_NUMBER_UNCHANGED(204, "与原先手机号相同"),
    //密码格式错误
    PASSWORD_FORMAT_ERROR(301, "密码格式错误"),
    //密码与确认密码不一致
    PASSWORD_NOT_CONSISTENT(302, "密码与确认密码不一致"),
    //密码错误
    PASSWORD_INCORRECT(303, "密码错误"),
    //登录错误超过3次，锁定5分钟
    LOGIN_FAIL_MANY_TIMES(304, "登录错误超过3次，锁定5分钟"),
    //与原先密码相同
    PASSWORD_UNCHANGED(305, "与原先密码相同"),
    //昵称格式错误
    NICKNAME_FORMAT_ERROR(401, "昵称格式错误");


    Integer code;
    String message;

    ProfileCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "VIPCodeEnum{" +
                "code=" + code +
                ", message='" + message + '\'' +
                '}';
    }
}
